package com.project.user.controller.controller;

import com.project.user.entity.entitly.UserInfoExtend;
import com.project.user.mapper.UserInfoExtendMapper;
import com.untils.MybatisClass;
import org.apache.ibatis.session.SqlSession;

public class UserInfoExtendController implements com.project.user.controller.UserInfoExtendController {

    @Override
    public int updateUserInfoExample(UserInfoExtend userInfoExample) {
        SqlSession sqlSession = MybatisClass.getSqlSession();
        UserInfoExtendMapper userInfoMapper = sqlSession.getMapper(UserInfoExtendMapper.class);
        int UserInfoSuccess = -1;
        try {
            UserInfoSuccess = userInfoMapper.updateByPrimaryKey(userInfoExample);
        } finally {
            sqlSession.close();
        }
        return UserInfoSuccess;
    }
}
